<style>
    table > tbody > tr > td, table > thead > tr > th {
        border: 1px solid #000000 !important;
        font-size: 16px;
    }
</style>
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">声明书</div>
                </div>
                <div class="widget-body  am-fr">
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <button type="button" class="am-btn am-btn-default am-btn-success" id="btnPrint"
                                            onclick="print()">
                                        <span class="am-icon-plus"></span> 打印
                                    </button>
                                    <button type="button" onclick="loadPage('deviceInformation/search')"
                                            class="am-btn am-btn-default am-btn-danger ">返回
                                    </button>
                                </div>
                                <div class="widget-body am-fr" th:each="record:${statementDevcieInformationList}"
                                     id="printContent">
                                    <table class="table table-bordered am-text-nowrap table-responsive text-center"
                                           style="margin-top: 60px; background-repeat:no-repeat;">

                                        <tbody class="print-border">
                                        <div>
                                            <h1 style="font-size:22pt; line-height:240%; margin:17pt 0pt 16.5pt; orphans:0; page-break-after:avoid; page-break-inside:avoid; text-align:center; widows:0">
                                                <span style="font-family:宋体; font-size:22pt; font-weight:bold">声明书</span>
                                            </h1>
                                            <p style="line-height:20pt; margin:0pt; orphans:0; text-align:justify; text-indent:28.1pt; widows:0">
                                                <span style="font-family:宋体; font-size:14pt">
                                                    声明人：
                                                </span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.registerName != null} ? ${record.registerName} : ''"></span>
                                            </p>
                                            <p style="line-height:20pt; margin:0pt; orphans:0; text-align:justify; text-indent:28.1pt; widows:0">
                                                <span
                                                        style="font-family:宋体; font-size:14pt">声明人身份证号：
                                                </span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.identification != null} ? ${record.identification} : ''"></span>
                                                <span
                                                        style="font-family:宋体; font-size:14pt"> 
                                                </span>
                                            </p>
                                            <p style="line-height:20pt; margin:0pt; orphans:0; text-align:justify; text-indent:28.1pt; widows:0">
                                                <span style="font-family:宋体; font-size:14pt">
                                                    住址：
                                                </span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.address != null} ? ${record.address} : ''"></span>
                                                <span
                                                        style="font-family:宋体; font-size:14pt"> 
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                                                <span
                                                        style="font-family:宋体; font-size:14pt">声明内容：
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                                                <span
                                                        style="font-family:宋体; font-size:14pt">本人所有机械设备一台，品牌：
                                                </span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.deviecBrand != null} ? ${record.deviecBrand} : ''">
                                                </span>
                                                <span
                                                        style="font-family:宋体; font-size:14pt">，
                                                </span>
                                                <span style="font-family:宋体; font-size:14pt">类型：</span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:if="${record.machineryType != null}"
                                                      th:switch="${record.machineryType}">
                                                <span th:case="0">挖掘机</span>
                                                    <span th:case="1">装载机</span>
                                                    <span th:case="2">矿用自卸车</span>
                                                    <span th:case="3">推土机</span>
                                                    <span th:case="4">压路机</span>
                                                    <span th:case="5">平地机</span>
                                                    <span th:case="6">混凝土机械</span>
                                                    <span th:case="7">桩工机械</span>
                                                    <span th:case="8">凿岩机械</span>
                                                    <span th:case="9">摊铺机</span>
                                                    <span th:case="10">俩头忙</span>
                                                    <span th:case="11">旋挖钻</span>
                                                    <span th:case="12">叉车</span>
                                                     <span th:case="13">塔式起重机</span>
                                            </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify;text-indent:21pt; widows:0">
                                                <span style="font-family:宋体; font-size:14pt">型号：</span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.plateSubject != null} ? ${record.plateSubject} : ''">
                                                </span>
                                                <span
                                                        style="font-family:宋体; font-size:14pt">，设备出厂编号：
                                                </span>
                                                <span style=" font-size:14pt ;text-decoration:underline "
                                                      th:text="${record.factoryNum != null} ? ${record.factoryNum} : ''"></span>
                                                <span
                                                        style="font-family:宋体; font-size:14pt">。
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                                                <span style="font-family:宋体; font-size:14pt">
                                                    现我
                                                </span>
                                                <span style="font-family:宋体; font-size:14pt; font-weight:bold">
                                                    郑重承诺：该机械设备是我个人购买，所有款项已全部付清。
                                                    我保证该机械设备无所有权保留、无抵押、无查封、无其他债权债务纠纷等限制处分的情形。
                                                    该机械设备确属我个人所有，无其他共有人。
                                                    我同意通过内蒙古工程机械行业协会对外公布我们的车辆基本信息。
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                                                <span style="font-family:宋体; font-size:14pt">
                                                    以上内容为我个人的真实意思表示，
                                                我自愿对上述声明的内容及我提供材料的真实合法性负法律责任，
                                                如有虚假事实，给他人造成损害，我自愿承担由此产生的一切法律责任及赔偿责任，
                                                如触犯刑法，我自愿承担因此产生的刑事责任。
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; widows:0">
                                                <span style="font-family:Calibri; font-size:14pt">&#xa0;
                                                </span>
                                            </p>
                                            <p style="line-height:29pt; margin:0pt; orphans:0; text-align:justify; widows:0"><span
                                                    style="font-family:Calibri; font-size:14pt">&#xa0;</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:168pt; widows:0"><span
                                                    style="font-family:宋体; font-size:14pt">声明人（签字按手印）：</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:52.5pt; widows:0"><span
                                                    style="font-family:Calibri; font-size:14pt">&#xa0;</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:52.5pt; widows:0"><span
                                                    style="font-family:Calibri; font-size:14pt">&#xa0;</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:168pt; widows:0"><span
                                                    style="font-family:宋体; font-size:14pt">见证人（签字按手印）：</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:168pt; widows:0"><span
                                                    style="font-family:Calibri; font-size:14pt">&#xa0;</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; text-indent:241.5pt; widows:0"><span
                                                    style="font-family:宋体; font-size:14pt">年   月   日</span></p>
                                            <p style="margin:0pt; orphans:0; text-align:justify; widows:0"><span
                                                    style="font-family:Calibri; font-size:10.5pt">&#xa0;</span>
                                            </p>
                                        </div>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{/ui/js/jQuery.print.js}"/>
<script type="text/javascript">
    function print() {
        $("#printContent").print({
            globalStyles: true,//是否包含父文档的样式，默认为true
            mediaPrint: false,//是否包含media='print'的链接标签。会被globalStyles选项覆盖，默认为false
            stylesheet: null,//外部样式表的URL地址，默认为null

            noPrintSelector: ".no-print",//不想打印的元素的jQuery选择器，默认为".no-print"
            append: null,//将内容添加到打印内容的后面
            prepend: null//将内容添加到打印内容的前面，可以用来作为要打印内容
            //deferred:
            //   $.Deferred()//回调函数
        });
    }
</script>